<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		
		<script>
			function n(a){
				if (a == 1) {
					return  1;
				} else{
					return a * n(a - 1);
				}
			}
			
			console.log(n(5));
		</script>
	</body>
</html>
